﻿using D.B.Data.Domain.Enums;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace D.B.Data.Domain.DTO.Output
{
    public class QueryLeaveDTO
    {
        public long Id { get; set; }
        /// <summary>
        /// 用户Id
        /// </summary>
        public long UserId { get; set; }

        /// <summary>
        /// 用户名称
        /// </summary>
        public string UserName { get; set; }
        /// <summary>
        /// 部门Id
        /// </summary>
        public long DeptId { get; set; }
        public string DeptName { get; set; }

        /// <summary>
        /// 请假类型名称
        /// </summary>
        public WorkflowTypeEnums TypeEnums { get; set; }
        /// <summary>
        /// 请假类型名称
        /// </summary>
        public string TypeEnumsName { get { return TypeEnums.ToString(); } }
        /// <summary>
        /// 请假时间
        /// </summary>


        public DateTime LeaveTIme { get; set; }
        /// <summary>
        /// 报道时间
        /// </summary>
        public DateTime ReportTIme { get; set; }

        /// <summary>
        /// 总工时
        /// </summary>

        public int SumTime { get; set; }
        /// <summary>
        /// 请假事由
        /// </summary>

        public string Desc { get; set; }
        /// <summary>
        /// 部门领导
        /// </summary>
        public string DeptBoos { get; set; }
        /// <summary>
        /// 是否审批
        /// </summary>
        public bool State { get; set; }

        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 审批结果
        /// </summary>
        public string IsResult { get; set; }
        /// <summary>
        /// 审批意见
        /// </summary>
        public string ResultDesc { get; set; }
    }

}
